package pattern.proxy.jdk;
/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/5/29
 */
public class Test {
    public static void main(String[] args) {
        //目标对象
        ArithmeticCalculator target=  new Calculator();
        //代理对象
        ArithmeticCalculator proxy=new ArithmeticalCalculatorLogImpl(target).getProxy();
        proxy.add(1,2);
        proxy.div(2,1);
        proxy.sub(2,1);
        proxy.mul(2,2);
    }
}
